import request from '@/utils/request'

//需求列表
export function demandLists(params?: any) {
    return request.get({ url: '/demand.demand/lists', params })
}

// 需求详情
export function demandDetail(params: any) {
    return request.get({ url: '/demand.demand/detail', params })
}

// 关闭需求
export function demandClose(params: any) {
    return request.post({ url: '/demand.demand/closeDemand', params })
}

// 审核需求
export function demandCheck(params: any) {
    return request.post({ url: '/demand.demand/checkDemand', params })
}

// 获取需求关联对接记录
export function demandAbutmentRecord(params: any) {
    return request.get({ url: '/demand.demand/abutmentRecord', params })
}

// 获取配置信息
export function getMyInfo(params: any) {
    return request.get({ url: '/user.businessConfig/getMyInfo', params })
}

// 设置开关
export function setValue(params: any) {
    return request.post({ url: '/user.businessConfig/setValue', params })
}

// 获取未读站内信总数
export function getInStationCount(params: any) {
    return request.get({ url: '/user.businessConfig/getInStationCount', params })
}

// 获取站内信数据
export function getInStationList(params: any) {
    return request.get({ url: '/user.businessConfig/getInStationList', params })
}

// 消息已读
export function readMsg(params: any) {
    return request.post({ url: '/user.businessConfig/readMsg', params })
}

// 修改需求
export function editDemand(params: any) {
    return request.post({ url: '/demand.demand/editDemand', params })
}

// 需求详情-对接信息
export function abutmentRecordLists(params: any) {
    return request.get({ url: '/demand.demand/abutmentRecordLists', params })
}

// 获取满足需求条件的渠道数
export function getAccessibleChannelCount(params: any) {
    return request.post({ url: '/demand.demand/getAccessibleChannelCount', params })
}

// 获取同一省份下的所有城市
export function getCitiesInSameProvince(params: any) {
    return request.get({ url: '/demand.demand/getCitiesInSameProvince', params })
}